﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace MediumApi.Db
{
    /// <summary>
    /// 评论表
    /// </summary>
    [Table("tb_comments")]
    public class Comments
    {
        /// <summary>
        /// 评论ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 内容ID
        /// </summary>
        public string ContentId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 回复用户ID
        /// </summary>
        public string ReplyUserId { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public int LikeCount { get; set; }
        /// <summary>
        /// 状态(0-删除 1-正常)
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 父级
        /// </summary>
        public string Parent { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateAt { get; set; }
       /// <summary>
       /// 回复ID
       /// </summary>
        public string ReplyId { get; set; }
    }
}
